package top.yuhaitao.core.wechat;

public class MessageUtil {

    public static String replyMessage(String dev, String user, String sendContent) {
        ReplyTextMsg textMsg = new ReplyTextMsg();
        textMsg.setFromUserName(dev);
        textMsg.setToUserName(user);
        textMsg.setCreateTime();
        textMsg.setContent(sendContent);
        textMsg.setMsgType(Constant.MSGTYPE_TEXT);
        try {
            //将对象转化为XML
            return textMsg.Msg2Xml();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "";
    }
}
